package com.wind.taobao.api.trade.item.rest
{
	import com.wind.taobao.api.trade.item.convert.PostageConvert;
	import com.wind.taobao.api.trade.item.model.Postage;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.postage.get Response
	 * @author fxy
	 *
	 */
	public class PostageGetResponse extends TaobaoResponse
	{
		public var postage:Postage;

		public function PostageGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initPostage();
		}

		private function initPostage():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("postage"))
					postage=PostageConvert.convertPostage(body["rsp"]["postage"]);
			}
		}

	}
}